package com.meihua.mes2ehr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * @TableName mes_point_result
 */
@TableName(value ="mes_point_result")
@Data
public class MesPointResult implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String targetId;

    private String targetName;

    private String productLine;

    private String workshopName;

    private String value;

    private String isPushed;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MesPointResult other = (MesPointResult) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId()))
            && (this.getTargetName() == null ? other.getTargetName() == null : this.getTargetName().equals(other.getTargetName()))
            && (this.getProductLine() == null ? other.getProductLine() == null : this.getProductLine().equals(other.getProductLine()))
            && (this.getWorkshopName() == null ? other.getWorkshopName() == null : this.getWorkshopName().equals(other.getWorkshopName()))
            && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
            && (this.getIsPushed() == null ? other.getIsPushed() == null : this.getIsPushed().equals(other.getIsPushed()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode());
        result = prime * result + ((getTargetName() == null) ? 0 : getTargetName().hashCode());
        result = prime * result + ((getProductLine() == null) ? 0 : getProductLine().hashCode());
        result = prime * result + ((getWorkshopName() == null) ? 0 : getWorkshopName().hashCode());
        result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
        result = prime * result + ((getIsPushed() == null) ? 0 : getIsPushed().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", targetId=").append(targetId);
        sb.append(", targetName=").append(targetName);
        sb.append(", productLine=").append(productLine);
        sb.append(", workshopName=").append(workshopName);
        sb.append(", value=").append(value);
        sb.append(", isPushed=").append(isPushed);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}